package org.kjtc.balanceService;

import java.util.List;

import org.kjtc.balanceEntity.StationStandard;
import org.kjtc.service.BaseService;
import org.springframework.stereotype.Service;

@Service("stationStandardService")
public class StationStandardService extends BaseService{

	@SuppressWarnings("unchecked")
	public List<StationStandard> getStationStandard() throws Exception{
		return (List<StationStandard>)this.getDaoSupport().findForList("T_StationStandard.getStationStandard", null);
	}
	
	@SuppressWarnings("unchecked")
	public List<StationStandard> getStationStandardPrice() throws Exception{
		return (List<StationStandard>)this.getDaoSupport().findForList("T_StationStandard.getStationStandardPrice", null);
	}
	
	public int insertStationStandard(StationStandard stationStandard) throws Exception {
		return (int) this.getDaoSupport().save("T_StationStandard.insertStationStandard", stationStandard);
	}
	
	public int updateStationStandard(StationStandard stationStandard) throws Exception {
		return (int) this.getDaoSupport().update("T_StationStandard.updateStationStandard", stationStandard);
	}
	
	public int deleteStationStandard(StationStandard stationStandard) throws Exception {
		return (int) this.getDaoSupport().update("T_StationStandard.deleteStationStandard", stationStandard);
	}
}
